package com.winglish.as3.flashplayer 
{
	import flash.system.Capabilities;
	/**
	 * ...
	 * @author charmjin
	 */
	public class FlashPlayer 
	{
		static private var _version:String = Capabilities.version;
		static private var _playerDownUrl:String = "http://get.adobe.com/kr/flashplayer/";
		
		public function FlashPlayer() { }
		
		/**
		 * 녹음기 사용 가능한 flashPlayer 버전인지 체크.
		 * @return
		 */
		static public function chkVersion():Boolean {
			var check:Boolean = false;
			if (Number(getShortversion()) >= 10.1) check = true;
			trace("FlashPlayer version : " + _version);
			return check;
		}
		
		/**
		 * 단축한 flashPlayer 버전.
		 * @return
		 */
		static public function getShortversion():String {
			var arr:Array = _version.split(",");
			return arr[0].substr( -2) + "." + arr[1];
		}
		
		/**
		 * 풀 flashPlayer 버전.
		 */
		static public function get version():String 
		{
			return _version;
		}
		
		/**
		 * flashPlayer 버전 다운 주소.
		 */
		static public function get playerDownUrl():String 
		{
			return _playerDownUrl;
		}
	}
}